<?php
use yii\helpers\Html;
use app\assets\AppAsset;
use yii\helpers\Url;
/**
 * Created by PhpStorm.
 * User: LiJia
 * Date: 2016/4/1
 * Time: 16:33
 *
 */
?>

<?=Html::jsFile('@web/js/jquery.min.js')?>

<?=Html::jsFile('@web/js/crypto-js.js')?>







<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/gettokenseed'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="获取种子"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/managelogin'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="glydl" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="管理员登录"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/workorderlist'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="gdlb" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="工单列表"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/workselectuser'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="cxyyhxx" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="查询用户信息"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/workordercount'])?>" style="float: left;margin-right:20px ">
<table cellpadding="5" align="center"  border='1'>

    <tr>
        <td>参数:<input class="easyui-validatebox"  id="gdsm" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

    </tr>
    <tr>
        <td>  <input type="submit" align="center" value="工单数目"></td>
    </tr>

</table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/stepstoregistration'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="dddjbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="到店登记步骤"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/stepsequipment'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="czsbbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="安装/拆除车载设备步骤"></td>
        </tr>

    </table>


</form>



<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/stepscarwashing'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="clqxbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="车俩清洗步骤"></td>
        </tr>

    </table>


</form>


<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/stepsboundrecord'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="clcrcbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="车辆出场入场步骤"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/stepsitems'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="scwpbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="随车证件与物品步骤"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/stepscheckcar'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="ycbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="验车步骤"></td>
        </tr>

    </table>


</form>


<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/stepscomplete'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="wcgd" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="工单步骤结果完成确定"></td>
        </tr>

    </table>


</form>


<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/viewcheckcar'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="ckycxx" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="查看验车信息"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/viewequipment'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="ckczsbbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="查看车载设备步骤信息"></td>
        </tr>

    </table>


</form>


<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/viewcarwashing'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="ckclqxbzxx" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="查看车辆清洗步骤信息"></td>
        </tr>

    </table>


</form>


<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/viewboundrecord'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="ckclcrcbz" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="查看车辆出场入场步骤信息"></td>
        </tr>

    </table>


</form>



<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/viewitems'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="cksczjywp" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="查看随车证件与物品步骤信息"></td>
        </tr>

    </table>


</form>






<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/chesunlist'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="cslb" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="车损登记车损列表"></td>
        </tr>

    </table>


</form>






<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/chesunadd'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="tjcs" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="车损登记添加车损"></td>
        </tr>

    </table>


</form>





<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/additionalcost'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="ewfyqr" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="额外费用记录"></td>
        </tr>

    </table>


</form>


<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/chesuncost'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="tjxgcsfy" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="添加和修改车损费用"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/oilmileagecost'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="tjxgyf" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="添加和修改油费公里费用"></td>
        </tr>

    </table>


</form>

<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/workorderuser'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="czzkxx" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="查询车主或租客的信息"></td>
        </tr>

    </table>


</form>


<form id="userm_ff" method="post" action="<?=Url::to(['/fieldwork/fieldwork/viewaitpayclose'])?>" style="float: left;margin-right:20px ">
    <table cellpadding="5" align="center"  border='1'>

        <tr>
            <td>参数:<input class="easyui-validatebox"  id="dfxmjscx" type="text" name="api_value" value=""  onblur=""  data-options="required:true"></input></td>

        </tr>
        <tr>
            <td>  <input type="submit" align="center" value="待付项目结算查询"></td>
        </tr>

    </table>


</form>



<script>

    function getcookie(c_name)
    {
        if (document.cookie.length>0)
        {
            c_start=document.cookie.indexOf(c_name + "=");
            if (c_start!=-1)
            {
                c_start=c_start + c_name.length+1;
                c_end=document.cookie.indexOf(";",c_start);
                if (c_end==-1) c_end=document.cookie.length
                return unescape(document.cookie.substring(c_start,c_end))
            }
        }
        return "没有"
    }

    var sessionid= getcookie('PHPSESSID');


    $.ajax({
        type: "post",
        url:'<?=Url::to(['/fieldwork/fieldwork/gettokenseed'])?>',
        cache: false,
        async: false,
        dataType: "json",
        // data: { u_id:id,u_name:value},
        success: function (data) {
            tokenseed=data.TokenSeed;

        }
    });

   // document.write("种子:"+tokenseed);
//    document.write("sessionid:"+sessionid);

    var str_iv='01040105090200000000000000000605';
    var new_iv='';
    for(var i=0;i<str_iv.length-1;i+=2)
    {
        new_iv+=String.fromCharCode(parseInt(str_iv.substr(i,2), 16));
    }

    var password=CryptoJS.MD5(sessionid+tokenseed);
    password=   password.toString();


    var key = CryptoJS.SHA256(password); //123456

    var iv  = CryptoJS.enc.Latin1.parse(new_iv);   // Utf8


   // 管理员登录


    var encrypted_glydl = CryptoJS.AES.encrypt('{"m_account":"chenzhang","m_password":"123456"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_glydl=encrypted_glydl.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
       // document.write("js加密后的数据:"+encrypted_glydl);


    $('#glydl').val(encrypted_glydl);



    //工单列表
    var encrypted_gdlb = CryptoJS.AES.encrypt('{"store_id":"1","order_type":"0","order_state":"-1","sort_column":"1","sort_order":"asc","page_now":"1","page_size":"5","start_time":"2016-06-30 00:00","end_time":"2016-8-30 23:37"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_gdlb=encrypted_gdlb.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
  //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#gdlb').val(encrypted_gdlb);


    //查询员工信息
    var encrypted_cxyyhxx = CryptoJS.AES.encrypt('{"user_date":"陈先荣"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_cxyyhxx=encrypted_cxyyhxx.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#cxyyhxx').val(encrypted_cxyyhxx);

    // 工单数目
    var encrypted_gdsm = CryptoJS.AES.encrypt('{"store_id":"1","manage_id":"35","start_time":"2016-06-25 00:00","end_time":"2016-07-20 23:59"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_gdsm=encrypted_gdsm.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#gdsm').val(encrypted_gdsm);


    // 到店登记步骤
    var encrypted_dddjbz = CryptoJS.AES.encrypt('{"workorder_id":"7","workstep_id":"101","store_result":"1","remarks":"确认是本人","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_dddjbz=encrypted_dddjbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#dddjbz').val(encrypted_dddjbz);


//安装/拆除车载设备步骤
    var encrypted_czsbbz = CryptoJS.AES.encrypt('{"workorder_id":"7","workstep_id":"103","type":"1","equipment_num":"123","equipment_phone":"456","netdevice_num":"13162893313","remarks":"确认是本人","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_czsbbz=encrypted_czsbbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#czsbbz').val(encrypted_czsbbz);

    //车俩清洗步骤
    var encrypted_clqxbz = CryptoJS.AES.encrypt('{"workorder_id":"7","workstep_id":"104","plate_number":"21231321","carwashing_type":"1","remarks":"确认是本人","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_clqxbz=encrypted_clqxbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#clqxbz').val(encrypted_clqxbz);

    //车辆出场入场步骤
    var encrypted_clcrcbz = CryptoJS.AES.encrypt('{"workorder_id":"7","workstep_id":"105","bound_type":"1","plate_number":"21231321","bound_number":"146588","remarks":"确认是本人","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_clcrcbz=encrypted_clcrcbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#clcrcbz').val(encrypted_clcrcbz);

    //随车证件与物品步骤
    var encrypted_scwpbz = CryptoJS.AES.encrypt('{"workorder_id":"7","workstep_id":"101","three_risks":"1","driving_license":"1","car_keys":"1","other_items":"小熊维尼毛绒娃娃","attachment_info":"","locker_num":"key12211","remarks":"确认是本人","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_scwpbz=encrypted_scwpbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#scwpbz').val(encrypted_scwpbz);

    //验车步骤
    var encrypted_ycbz = CryptoJS.AES.encrypt('{"u_userid":"888","workorder_id":"7","workstep_id":"102","carinfo_img":"2013.jpg,2014.jpg,2015.jpg,2016.jpg","carinfo_remark":"车况的备注","mileage_img":"里程的照片",' +
        '"fuel_meterimg":"油表的照片","mileage_data":"里程的数据","fuel_meter":"油表的数据","mileage_remark":"里程油表的备注","checkcar_pagimg":"1234.jpg,4567.jpg","checkcar_pagremark":"验车单的备注","remarks":"备注","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_ycbz=encrypted_ycbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#ycbz').val(encrypted_ycbz);

    //工单步骤结果完成确定

    // 104	1	车主送车确认验车	2016-06-25 18:29:36

   // 405	4	车主还车确认验车	2016-06-25 18:30:55
 //   407	4	额外项目确认	2016-05-26 11:21:11
    var encrypted_wcgd = CryptoJS.AES.encrypt('{"workorder_id":"46","workstep_id":"104","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_wcgd=encrypted_wcgd.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#wcgd').val(encrypted_wcgd);



    //查看验车信息
    var encrypted_ckycxx = CryptoJS.AES.encrypt('{"workorder_id":"7","workstep_id":"103"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_ckycxx=encrypted_ckycxx.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#ckycxx').val(encrypted_ckycxx);


  //查看车载设备步骤信息
    var encrypted_ckczsbbz = CryptoJS.AES.encrypt('{"workorder_id":"8","workstep_id":"104"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_ckczsbbz=encrypted_ckczsbbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#ckczsbbz').val(encrypted_ckczsbbz);



    //查看车辆清洗步骤信息
    var encrypted_ckclqxbzxx = CryptoJS.AES.encrypt('{"workorder_id":"8","workstep_id":"105"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_ckclqxbzxx=encrypted_ckclqxbzxx.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#ckclqxbzxx').val(encrypted_ckclqxbzxx);




    //查看出入场步骤信息
    var encrypted_ckclcrcbz = CryptoJS.AES.encrypt('{"workorder_id":"8","workstep_id":"107"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_ckclcrcbz=encrypted_ckclcrcbz.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#ckclcrcbz').val(encrypted_ckclcrcbz);




    //查看随车证件步骤信息
    var encrypted_cksczjywp = CryptoJS.AES.encrypt('{"workorder_id":"8","workstep_id":"106"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_cksczjywp=encrypted_cksczjywp.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#cksczjywp').val(encrypted_cksczjywp);



    //车损登记  车损列表
    var encrypted_cslb = CryptoJS.AES.encrypt('{"cartime_id":"1","order_id":"1"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_cslb=encrypted_cslb.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#cslb').val(encrypted_cslb);

    //车损登记  添加车损
    var encrypted_tjcs = CryptoJS.AES.encrypt('{"cartime_id":"1","order_id":"1","damage_option":"2","damage_item":"chesun2131","damage_status":"33","damage_vehicle":"663","damage_cost":"888","damage_deal":"1"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_tjcs=encrypted_tjcs.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#tjcs').val(encrypted_tjcs);





    //查看额外费用记录
    var encrypted_ewfyqr = CryptoJS.AES.encrypt('{"order_id":"62"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_ewfyqr=encrypted_ewfyqr.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#ewfyqr').val(encrypted_ewfyqr);


    //添加和修改车损费用
    var encrypted_tjxgcsfy = CryptoJS.AES.encrypt('{"damage_id":"1","cost":"123.50","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_tjxgcsfy=encrypted_tjxgcsfy.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#tjxgcsfy').val(encrypted_tjxgcsfy);


    //添加和修改油费 公里废用额外项目表

    var encrypted_tjxgyf = CryptoJS.AES.encrypt('{"cartime_id":"198","order_id":"68","item_name":"邮费费用","item_cost":"200","remark":"","item_types":"1","manage_id":"35"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_tjxgyf=encrypted_tjxgyf.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#tjxgyf').val(encrypted_tjxgyf);


    //添加和修改油费 公里废用额外项目表

    var encrypted_czzkxx = CryptoJS.AES.encrypt('{"u_userid":"34"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_czzkxx=encrypted_czzkxx.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#czzkxx').val(encrypted_czzkxx);



    //添加和修改油费 公里废用额外项目表

    var encrypted_dfxmjscx = CryptoJS.AES.encrypt('{"workorder_id":"78","workstep_id":"301"}', key, {
            iv: iv,
            mode:CryptoJS.mode.CBC,
            padding:CryptoJS.pad.Pkcs7}
    );
    encrypted_dfxmjscx=encrypted_dfxmjscx.toString().replace(/\+|\=|\//g, function(){

        var config = {
            '+': '-',
            '=': '',
            '/': '_'
        };
        return config[arguments[0]];
    });
    //  document.write("js加密后的数据:"+encrypted_gdlb);

    $('#dfxmjscx').val(encrypted_dfxmjscx);




//    encrypted=encrypted.replace(/\-|\_/g, function(){
//
//        var config = {
//            '-': '+',
//            '_': '/'
//        };
//        return config[arguments[0]];
//    });
//    encrypted+='===='.substr(0,encrypted.length %4);
//
//    var decryptd = CryptoJS.AES.decrypt(encrypted, key, {
//        iv: iv,
//        mode:CryptoJS.mode.CBC,
//        padding:CryptoJS.pad.Pkcs7
//    });
//    document.write("js解密后的数据:"+decryptd.toString(CryptoJS.enc.Utf8)+'<br>');






    ////////////////////  以下是解密

    //     var J_key_hash = CryptoJS.MD5("da7d2d4dde68d300ee7ba5bf9afad770");
    //     var J_key = CryptoJS.enc.Utf8.parse(J_key_hash);
    //
    //         var decryptd = CryptoJS.AES.decrypt("IyG6hkI4Fpeuro0+0itdtXKZpguHOqXmi+QjPdAKkQve6wiULm17oWMd3n1A5JO/Z6VIudU6P+b0PC42YaGkJCpSU+ShkLlkGSYbDyBY+jCJOT77IhjUuN6kjEyMbU/rNwGJOsSJTvLdxRgpeGUp1DKVuWLpDFD6fBJ2IE+v59HXUPI58MBnQvF8zCoj+kv/aHmS/ThJK4fx4os0ksFSvw==", J_key, {
    //             iv: iv,
    //             mode:CryptoJS.mode.CBC,
    //             padding:CryptoJS.pad.ZeroPadding
    //         });
    //         document.write("js解密后的数据:"+decryptd.toString(CryptoJS.enc.Utf8));



</script>



